Skip to content

Conversation

Andygol
Copy link
Contributor

@Andygol Andygol commented Oct 3, 2025

This PR proposes an updated version of the feature gate list formatting to make it look similar to Definition Lists1 in Markdown. Along with the list update, anchors have been added so that other articles can link to the description of the corresponding feature gate rather than just the feature gate page.

First Term
This is the definition of the first term.
Second Term
This is one definition of the second term.

Footnotes

  1. https://www.markdownguide.org/extended-syntax/#definition-lists

Update the formatting of the feature gate list to make it look similar to Definitions in Markdown.  <https://www.markdownguide.org/extended-syntax/#definition-lists>
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Oct 3, 2025
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 3, 2025
@k8s-ci-robot k8s-ci-robot requested a review from tengqm October 3, 2025 15:59
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lmktfy for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 3, 2025
Copy link

netlify bot commented Oct 3, 2025

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 5bfea0c
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/68dff2e61640df00078204aa
😎 Deploy Preview https://deploy-preview-52619--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@lmktfy
Copy link
Contributor

lmktfy commented Oct 5, 2025

/area web-development

It's great to see changes suggested here.

@k8s-ci-robot k8s-ci-robot added the area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes label Oct 5, 2025
@lmktfy
Copy link
Contributor

lmktfy commented Oct 5, 2025

Please update the PR description to hyperlink to the preview.

{{- if $shouldDisplayThisFeatureGate -}}
{{- with $featureGateFile.Content -}}
<li>
<dt id="{{ $featureGateName }}"><code class="feature-gate-name">{{ $featureGateName }}</code></dt>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might:

Suggested change
<dt id="{{ $featureGateName }}"><code class="feature-gate-name">{{ $featureGateName }}</code></dt>
<dt id="feature-{{ $featureGateName }}"><code class="feature-gate-name">{{ $featureGateName }}</code></dt>

to avoid the risk of a collision with some other site feature. However, don't let this block a merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I initially considered using a prefix as well, but then dismissed the idea. I guess anchors can be used to link to feature gate descriptions instead of linking to the general page, like here.

You can disable API server identity leases by disabling the `APIServerIdentity`
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/).

The code will turn to ⬇️

- You can disable API server identity leases by disabling the `APIServerIdentity`
- [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
+ You can disable API server identity leases by disabling the [`APIServerIdentity`
+ feature gate](/docs/reference/command-line-tools-reference/feature-gates/#APIServerIdentity).

@lmktfy
Copy link
Contributor

lmktfy commented Oct 5, 2025

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants